Skip to content

[Port to dtq-dev] Issue ufal/clarin-dspace#1321: disable File preview for files where user has no Bitstream READ permission#1280

Open
kosarko wants to merge 1 commit intodataquest-dev:dtq-devfrom
ufal:backport-1327-to-dtq-dev
Open

[Port to dtq-dev] Issue ufal/clarin-dspace#1321: disable File preview for files where user has no Bitstream READ permission#1280
kosarko wants to merge 1 commit intodataquest-dev:dtq-devfrom
ufal:backport-1327-to-dtq-dev

Conversation

@kosarko
Copy link

@kosarko kosarko commented Mar 16, 2026

Port of ufal#1327 by @kuchtiak-ufal to dtq-dev.

…m READ permission (#1327)

* Issue 1321: disable File preview for files where the user has no Bitstream READ permission

* resolve Copilot comments

* alow file preview in case only the License agreement is needed

* don't allow to create file preview for non-authorized user, nor for item that requires license confirmation

* fixed failing FilePreviewIT test. Now only the user with file READ permission can generate file preview

* add more tests for HTML file preview

* add test for HTML File preview

* improve warning messages

* extend test to see if non admin user can see already generated file preview

---------

Co-authored-by: Ondřej Košarko <ko_ok@centrum.cz>
(cherry picked from commit 50d7bbc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants